<template>
  <!-- 架子 -->
  <div class="layout">
    <!-- layout组件 -->
    <!-- 二级路由出口   子路由出口 -->
    <router-view></router-view>

    <!-- 只有二级路由出口和4个导航  没有其他的 -->
    <!-- 123 -->

    <div class="navs">
      <RouterLink to="/layout/article">面经</RouterLink>
      <RouterLink to="/layout/collect">收藏</RouterLink>
      <RouterLink to="/layout/like">喜欢</RouterLink>
      <RouterLink to="/layout/user">我的</RouterLink>
    </div>
  </div>
</template>

<script>
export default {
  name: "HmLayout",
};
</script>

<style lang="less" scoped>
.navs {
  width: 100%;
  height: 50px;
  background-color: #8df;

  display: flex;
  justify-content: space-evenly;
  align-items: center;

  position: fixed;
  left: 0;
  bottom: 0;

  a.active {
    color: red;
  }
}
</style>
